package com.unipay.system.service;

import com.unipay.system.custom.CustomUser;
import com.unipay.system.custom.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @BelongsProject: unipay-auth-parent
 * @Author: cmy
 * @CreateTime: 2023-02-14  19:19
 * @Description: TODO   业务对象UserDetailsService，我们实现该接口，就完成了自己的业务
 */
public interface UserDetailsService {

    /**
     * 根据用户名获取用户对象（获取不到直接抛异常）
     */
    CustomUser loadUserByUsername(String username) throws UsernameNotFoundException;
}
